<template>
  <div class="scrollbar-flex-content">
    <div v-for="item in data" class="scrollbar-demo-item">
      <div class="title line">{{ item.id }}</div>
      <div class="line">
        <span class="cell" style="width: 60px">时间<br />Q/W</span>
        <span class="cell">架次<br />FOW</span>
        <span class="cell">架次<br />FCW</span>
        <span class="cell">负荷<br />LCW</span>
        <span class="cell">评价<br />ECQ</span>
        <span class="cell">评价<br />ECW</span>
      </div>
      <div v-for="i in moments.length" class="line">
        <span class="cell" style="width: 60px">
          {{ moments[i - 1] }}
        </span>
        <span class="cell">
          {{ item.summary.flowOriginalWhole[i - 1] }}
        </span>
        <span class="cell">
          {{ Math.round(item.summary.flowCalibratedWhole[i - 1]) }}
        </span>
        <span class="cell">
          {{ Math.round(item.summary.loadCalibratedWhole[i - 1]) }}
        </span>
        <span class="cell">
          {{ item.summary.evaluationCalibratedQuarter[i - 1] }}
        </span>
        <span class="cell">
          {{ item.summary.evaluationCalibratedWhole[i - 1] }}
        </span>
      </div>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  data: {
    type: Array,
    required: true,
  },
  moments: {
    type: Array,
    required: true,
  },
});
</script>

<style scoped>
@import "./subviewStyles.css";
</style>
